@extends('host.custom.common.common')

@section('c-head')
    <script type="text/javascript">
        PAGE_DATA = {
            pagingObj : {
                total : 0,
                pageSize : 7,
                page : 1
            }
        };

    </script>
@stop

@section('body')
        <!-- top_test -->
<div id="top_test"></div>

<!-- web_logo_search -->
<div id="web_logo_search"></div>

<!-- comm_nav -->
<div id="comm_nav"></div>

<div class="com-w mt20">
    <div class="wrapper clearfix">
        <div  class="w220 mr20 comm-left-menu">
            <div class="menu-top-title">采购商中心</div>
            <div id="leftmenuitems"></div>
        </div>

        <div class="w960 comm-main">
            <div class="main-release clearfix">
                <div class="main-release-nav">您当前的位置：首页 > 采购中心 >  我的申请</div>
                <div class="main-release-title">
                    <span class="icons"></span>
                    <span class="release-title-h3 f16">我的申请</span>
                </div>
                <div class="main-release-from">
                    <div class="h60">
                        <div class="mt30 comm-oper-line w800 clearfix">
                            <div class="oper-item lbl-txt">申请时间：</div>
                            <div class="oper-item">
                                <input id="time1" type="text" class="oper-item" name="time1" value="" />
                            </div>
                            <div class="oper-item lbl-txt ml10"> - </div>
                            <div class="oper-item ml10">
                                <input id="time2" type="text" class="oper-item" name="time2" value="" />
                            </div>
                            <div class="oper-item lbl-txt ml10"> 供应商名称：</div>
                            <div class="oper-item ml10">
                                <input type="text" class="oper-item" id="supplyername" name="supplyername" value="" />
                            </div>
                            <div id="search-btn" class="btn btn-warn btn-70x30 ml10">查询</div>
                        </div>
                    </div>
                    <div class="comm-tbl">
                        <div class="head">
                            <ul class="clearfix">
                                <li class="w250">供应商名称</li>
                                <li class="w250">申请时间</li>
                                <li class="w250">申请状态</li>
                                <li class="w200">操作</li>
                            </ul>
                        </div>
                        <div id="commTabs_1_body" class="body clearfix"></div>

                    </div>

                </div>

            </div>
            <div class="comm-paging" id="comm-paging" style="float: right;"></div>
        </div>

    </div>
</div>

<!-- foot_nav -->
<div id="foot_nav"></div>

<div id="bottom_main"></div>

<script type="text/template" id="item-template">
    <%_.each(obj, function(item){%>
    <ul class="clearfix counter-bid" data-id="<%=item.id%>">
        <li class="w250 f-red"> <a href="#" class="link-txt f-coffee"> <%=item.goodsname%></a> </li>
        <li class="w250 f-grey-2"><%=item.time %></li>
        <%if(item.state=="0"){%>
        <li class="w250 f-grey-2 state">申请中</li>
        <%}else if(item.state=="1"){%>
        <li class="w250 f-grey-2 state">已拒绝</li>
        <%}else if(item.state=="2"){%>
        <li class="w250 f-grey-2 state">已授权</li>
        <%}else if(item.state=="3"){%>
        <li class="w250 f-grey-2 state">已取消</li>
        <%}%>
        <li class="w200">
            <% if(item.state=="0"){ %>
            <div class="btn btn-warn btn-70x30 handle mt15" code="<%=item.id%>">取消</div>
            <% } %>
        </li>
    </ul>
    <%});%>
</script>

<script type="text/template" id="del-conf-tmpl">
    <div class="dialog-div">
        <div>是否确认处理该条信息</div>
        <div class="price-game-btn">
            <div class="btn btn-gray btn-w140x40 remove">取消</div>
            <div class="btn btn-warn btn-w140x40 submits" code="">提交</div>
        </div>
    </div>
</script>
<link rel="stylesheet" href="/assets/b2b/css/jquery-ui.min.css">
<script type="text/javascript" src="/assets/b2b/js/libs/dialog-min.js"></script>
<script src="/assets/b2b/js/libs/jquery.paging.min.js"></script>
<script src="/assets/b2b/js/libs/jquery-ui.min.js"></script>
<script src="/assets/b2b/js/pageModules/buyer/B5.js"></script>
@stop